﻿create proc SelectSynonymEntitiesSynonyms
@synonymEntityIDs intlist readonly
as
select s.*
from Synonyms s
inner join SynonymEntities se on se.SynoID = s.ID
inner join @synonymEntityIDs ids on se.ID = ids.value